Skip to content

replace getWindowDisplayMetrics with getScreenDisplayMetrics#53041

Closed
alanleedev wants to merge 1 commit into
facebook:mainfrom
alanleedev:export-D79571226
Closed

replace getWindowDisplayMetrics with getScreenDisplayMetrics#53041
alanleedev wants to merge 1 commit into
facebook:mainfrom
alanleedev:export-D79571226

Conversation

@alanleedev
Copy link
Copy Markdown
Contributor

Summary:
update DisplayMetricsHolder.getWindowDisplayMetrics() to getScreenDisplayMetrics().

Where window width and height is not needed, prefer to use screenDisplayMetrics as with upcoming diff windowDisplayMetrics initialization only happen using UiContext and have potential to cause more issues if used unnecessarily.

Changelog: [Internal] Update DisplayMetricsHolder.getWindowDisplayMetrics() to use .getScreenDisplayMetrics()

Differential Revision: D79571226

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 4, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79571226

…k#53041)

Summary:
Pull Request resolved: facebook#53041

update `DisplayMetricsHolder.getWindowDisplayMetrics()` to `getScreenDisplayMetrics()`.

Where window width and height is not needed, prefer to use `screenDisplayMetrics` as with upcoming diff `windowDisplayMetrics` initialization only happen using UiContext and have potential to cause more issues if used unnecessarily.

Changelog: [Internal] Update `DisplayMetricsHolder.getWindowDisplayMetrics()` to use `.getScreenDisplayMetrics()`

Reviewed By: mlord93

Differential Revision: D79571226
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D79571226

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 7, 2025
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 8b2e309.

@react-native-bot
Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @alanleedev in 8b2e309

When will my fix make it into a release? | How to file a pick request?

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been reverted by f21a890.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner Reverted

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants